Use CRPEJob::SetFont to set the font and font characteristics for the specified section. Use it any time that you want to change a default font at runtime in response to user input, or to specify a built
BOOL SetFont (
short sectionCode,
short scopeCode,
const _TCHAR *faceName,
short fontFamily,
short fontPitch,
short charSet,
short pointSize,
short isItalic,
short isUnderlined,
short isStruckOut,
short weight );
Specifies the section of the report for which you want to set the font. Use one of the PEP_XXX Section Codes Constants. | ||
Specifies whether the font selected is to apply to fields, to text, or to both. To specify both, use the bitwise "Or" operator (|). Use one of the following constants. | ||
Constant | Description | |
Sets the default font for fields in the report section specified. | ||
Sets the default font for all text (that has not been entered as a text field value) in the report section specified. | ||
Specifies a pointer to the actual face name of the font that you want to use. The face name you pass can typically come from a font dialog box, be hard coded in the application, or be chosen by the application from the fonts supported on the printer (for example, "Times New Roman"). | ||
Specifies the font family for the font that you want to use. Use one of the following constants. | ||
Constant | Description | |
Specifies the font pitch that you want to use. Use one of the following constants. | ||
Constant | Description | |
Specifies the character set that you want to use. Use one of the following constants. | ||
Constant | ||
Specifies the desired point size for the selected font. Use 0 to indicate no change. | ||
Specifies whether the font selected should be italicized. Use 1 for italics, 0 for no italics, or PEP_UNCHANGED to leave the italics as set up in the report. | ||
Specifies whether the font should be underlined. Use 1 to underline, 0 for no underline, or PEP_UNCHANGED to leave underline settings as specified in the report. | ||
Specifies whether the font should appear struck | ||
Specifies the weight of the font. Use one of the following constants. | ||
Constant | ||
Seagate Software IMG Holdings, Inc. http://www.seagatesoftware.com Support services: http://support.seagatesoftware.com |